package com.wb.jicheng;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月21日9:53
 */
public class Persion {
    private String name;
    private int age;
    private String gender;
public void show(){
    System.out.println("姓名:"+name+",年龄:"+age+",性别:"+gender);
}
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
class Man extends Persion{
    private double salary;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void work(){
        System.out.println("每天上班996，到手工资为:"+salary);
    }
}
class Woman extends Persion{
    private int appearance;
    public void shopping(){
        System.out.println("每天在家购购物，做做家务，她的颜值为:"+appearance);
    }
}
